package java_exceptions;

public class Practice2 {
	static int divide(int x, int y) {
		return x / y;
	}
	public static void main(String[] args) {
		try {
			System.out.println(divide(10, 2));
			System.out.println(divide(10, 0));
		} catch (ArithmeticException e) {
			System.out.println(e.toString());
		}
	}
}
